

package org.gemstone.mouseListener;

import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import org.come.Frame.ZhuFrame;
import org.come.Jpanel.ZhuJpanel;
import org.come.entity.Goodstable;

public class GemstoneMakeGoodsMouseListener extends MouseAdapter
{

	private Goodstable goods;

	public GemstoneMakeGoodsMouseListener(Goodstable goods)
	{
		this.goods = goods;
	}

	@Override
    public void mouseEntered(MouseEvent e)
	{
		if (goods != null) {
            ZhuFrame.getZhuJpanel().creatgoodtext(goods);
        }
	}

	@Override
    public void mouseExited(MouseEvent e)
	{
		ZhuFrame.getZhuJpanel().cleargoodtext();
	}
}
